storage, tests, cdi_upload: Verify CDI upload in primary UDN namespace#5214
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Warning Review limit reached
More reviews will be available in 59 minutes and 28 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds UDN-backed CDI upload test coverage by introducing two pytest fixtures ( ChangesUDN-backed CDI Upload Test
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsLinked repositories: Your configuration references 1 linked repositories, but your current plan allows 0. Analyzed ``, skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
|
D/S test |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/storage/cdi_upload/test_upload_virtctl.py`:
- Around line 418-423: The test function
`test_virtctl_image_upload_dv_in_pudn_namespace` declares `download_image` as a
function parameter but never uses its return value, only its side effects.
Remove `download_image` from the function parameters and add it to the existing
`@pytest.mark.usefixtures` decorator alongside `primary_udn_for_upload` to
explicitly declare the fixture dependency without creating an unused-argument
lint warning.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: d928feea-57f4-4c4d-8b7e-48034824af0c
📒 Files selected for processing (2)
tests/storage/cdi_upload/conftest.pytests/storage/cdi_upload/test_upload_virtctl.py
629d196 to
b7e1dfb
Compare
|
/lgtm |
|
Change: remove the SNO marker from the test. |
|
/verified Tested on bm03-tlv2 uv run pytest -sv --skip-deprecated-api-test --pdbcls=IPython.terminal.debugger:TerminalPdb --tc-format=python --cluster-sanity-skip-storage-check -m tier2 tests/storage/cdi_upload/test_upload_virtctl.py -k test_virtctl_image_upload_dv_in_pudn_namespace |
Test execution plan request detailsCRITICAL: You MUST post an inline review comment on the first changed line of the first file. As an expert software testing engineer, analyze all modified files in this PR and create a targeted test execution plan. Analysis Requirements:
Output rules: Your deliverable: Test Execution Plan
Use these formats:
Real test commands (MANDATORY when changes affect session/runtime code): When the affected code runs at session/collection time (conftest fixtures, pytest plugins,
Example output for a session-startup fix: Guidelines:
Hardware-Related Checks (SR-IOV, GPU, DPDK): When PR modifies fixtures for hardware-specific resources:
CRITICAL WORKFLOW COMPLETION RULES: When responding to this test execution plan request, you MUST follow these rules EXACTLY:
ABSOLUTE PROHIBITIONS (violating these creates empty/meaningless reviews):
Remember: The pull request review is visible to users. Additional comments are redundant noise. CRITICAL — Verification rules for smoke and gating decisions: |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Get the PR files and first changed line info
gh api repos/RedHatQE/openshift-virtualization-tests/pulls/5214/files --jq '.[] | {filename: .filename, patch: .patch}' | head -100
# Check smoke tests in cdi_upload
rg -n '`@pytest.mark.smoke`' tests/storage/cdi_upload/ 2>/dev/null || echo "No smoke tests in cdi_upload"
# Check gating tests in cdi_upload
rg -n '`@pytest.mark.gating`' tests/storage/cdi_upload/ 2>/dev/null || echo "No gating tests in cdi_upload"
# Check if the new fixtures are referenced anywhere else
rg -rn 'udn_namespace_for_dv_upload\|primary_udn_for_upload' tests/ 2>/dev/null
# Check for smoke tests broadly
rg -l '`@pytest.mark.smoke`' tests/ 2>/dev/null | head -5
# Check for gating tests broadly
rg -l '`@pytest.mark.gating`' tests/ 2>/dev/null | head -5Length of output: 4951 🏁 Script executed: #!/bin/bash
# Post inline review comment on first changed line of conftest.py (line 10, right side)
gh api repos/RedHatQE/openshift-virtualization-tests/pulls/5214/reviews \
--method POST \
--field event="COMMENT" \
--field body="" \
--field "comments[][path]=tests/storage/cdi_upload/conftest.py" \
--field "comments[][line]=10" \
--field "comments[][side]=RIGHT" \
--field "comments[][body]=**Test Execution Plan**
**Run smoke tests: False**
The smoke-marked test at \`tests/storage/cdi_upload/test_upload_virtctl.py:154\` does not use \`udn_namespace_for_dv_upload\` or \`primary_udn_for_upload\`. No traced dependency path exists from the smoke test to the new fixtures or any modified symbol.
**Run gating tests: False**
The gating-marked test at \`tests/storage/cdi_upload/test_upload_virtctl.py:233\` does not use the new fixtures. No traced dependency path exists.
**Affected tests to run**
\`tests/storage/cdi_upload/test_upload_virtctl.py::test_virtctl_image_upload_dv_in_pudn_namespace\`
(new test — validates CDI upload proxy reachability in a Primary UDN namespace, regression for CNV-58018; no \`@pytest.mark.sno\` marker after latest change)"Length of output: 3055 |
|
/approve |
Add a regression test for disk image upload to a DataVolume in a PUDN namespace, after a bug (CNV-58018). Signed-off-by: Anat Wax <awax@redhat.com> Assisted-by: Claude <noreply@anthropic.com>
|
Clean rebase detected — no code changes compared to previous head ( |
|
/retest all |
|
/retest verify-bugs-are-open |
|
/retest tox |
|
/retest build-container |
|
/retest verify-bugs-are-open |
|
/approve |
|
smoke tests wrongly flagged as needed; can be waived /approve |
|
Successfully removed PR tag: quay.io/openshift-cnv/openshift-virtualization-tests:pr-5214. |
|
/cherry-pick v4.22 |
|
Target branch |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:latest published |
|
/cherry-pick cnv-4.22 |
|
/cherry-pick cnv-4.21 |
|
Cherry-picked PR storage, tests, cdi_upload: Verify CDI upload in primary UDN namespace into cnv-4.22: #5396 |
|
Cherry-picked PR storage, tests, cdi_upload: Verify CDI upload in primary UDN namespace into cnv-4.21: #5399 |
What this PR does / why we need it:
Add a regression test that uploads a disk image to a DataVolume in a PUDN namespace. This tests regression for bug CNV-58018 (CDI upload proxy could not reach the uploader pod in namespaces with a primary UDN).
Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket:
NONE
Summary by CodeRabbit